package office.excel.poi;

import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;


public class Excel {
	public static HSSFWorkbook workbook;
	public static HSSFSheet sheet;
	public static int sheetIndex;
	public static int sheetName;
	 /**
	   * 根据索引得到表
	   * @param workbook
	   * @param index
	   * @return
	   */
	  public static HSSFSheet getSheet(HSSFWorkbook workbook,int sheetIndex)
	  { 
		 return workbook.getSheetAt(sheetIndex);
	  }
		public static HSSFSheet getSheet(int sheetIndex)
		{
			return workbook.getSheetAt(sheetIndex);
		}
		public static HSSFSheet getSheet(String sheetName)
		{
			return workbook.getSheet(sheetName);
		}
}
